#include "StudentInfo.cpp"
#ifndef GRADE_H
#define GRADE_H
class Grades: public StudentInfo
{
private:
	float mark[6];
	float average;
	void refresh()
	{
		int sum=0;
		for(int i=0;i<=5;i++)
			sum+=mark[i];
		average=sum/6;
	}
public:
	bool ifValid();
	Grades(char *, char *, char *,float []);
	void setGrade(float []);
	float getAverage();
};
#endif